﻿using DevExpress.Data;
using DevExpress.XtraEditors;
using DevExpress.XtraGrid;
using DXApplicationTangche.UC.圣同润.merchant;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 广州爱特安为科技.UC.圣同润.客服
{
    public partial class Form订单总览 : DevExpress.XtraEditors.XtraForm
    {
        public Form订单总览()
        {
            InitializeComponent();
            this.getData();
            //  订单总览布局
            gridView订单总览.GroupSummary.Add(DevExpress.Data.SummaryItemType.Count, "order_sn");
            gridView订单总览.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, "total_num");
            gridView订单总览.GroupFormat = "{1} {2}";  //默认"{0}: [#image]{1} {2}"; 字段名称：数据 计数=？
            gridView订单总览.GroupSummary[gridView订单总览.GroupSummary.Count - 1].DisplayFormat = "货品数量合计：{0:N0}";
        }

        private void getData()
        {
            this.gridControl订单总览.DataSource = MerchantService.getUnDeliveryOrderLogisticsInfoAll();
            this.gridView订单总览.RefreshData();
            this.gridView订单总览.BestFitColumns();
        }
    }
}